package cn.yj.wx.pay.enrity;

/**
 * @author 永健
 * @since 2021-09-22 18:42
 */
public class BaseRequest {
    protected String appid;
    protected String mchid;
    protected String description;
    protected String out_trade_no;
    protected String notify_url;
    protected Amount amount;
    /**
     * 写标准时间格式：例如：2022-02-21 00:00:00
     * 不需要写微信支付官方说明那个，后面会自动转换
     */
    protected String time_expire;
    protected Payer payer;

    public BaseRequest(String appid, String mchid, String description, String out_trade_no,
            Amount amount, Payer payer) {
        this.appid = appid;
        this.mchid = mchid;
        this.description = description;
        this.out_trade_no = out_trade_no;
        this.amount = amount;
        this.payer = payer;
    }

    public String getAppid() {
        return appid;
    }

    public BaseRequest setAppid(String appid) {
        this.appid = appid;
        return this;
    }

    public String getMchid() {
        return mchid;
    }

    public BaseRequest setMchid(String mchid) {
        this.mchid = mchid;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public BaseRequest setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public BaseRequest setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
        return this;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public BaseRequest setNotify_url(String notify_url) {
        this.notify_url = notify_url;
        return this;
    }

    public Amount getAmount() {
        return amount;
    }

    public BaseRequest setAmount(Amount amount) {
        this.amount = amount;
        return this;
    }

    public Payer getPayer() {
        return payer;
    }

    public BaseRequest setPayer(Payer payer) {
        this.payer = payer;
        return this;
    }

    public String getTime_expire() {
        return time_expire;
    }

    public BaseRequest setTime_expire(String time_expire) {
        this.time_expire = time_expire;
        return this;
    }
}

